package com.zzl.boot.bigevent.service.impl;

import com.zzl.boot.bigevent.mapper.articleTagMapper;
import com.zzl.boot.bigevent.pojo.article;
import com.zzl.boot.bigevent.pojo.tag;
import com.zzl.boot.bigevent.service.articleTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class implarticleTagService implements articleTagService {
    @Autowired
    private articleTagMapper mapper;

    @Override
    public void addartTag(Integer articleId, Integer tagId) {
        mapper.add(articleId,tagId);
    }

    @Override
    public List<tag> getList(Integer articleId) {
        return mapper.getList(articleId);
    }

    @Override
    public void update(Integer articleId, Integer tagId) {
        mapper.update(articleId,tagId);
    }

    @Override
    public void del(Integer articleId) {
        mapper.del(articleId);
    }

    @Override
    public Integer artilceCount(Integer id) {
        return mapper.artilceCount(id);
    }

    @Override
    public List<article> getArticleList(Integer id) {
        return mapper.getArticleList(id);
    }
}
